package com.legrand.www.module.authentication.service;

import com.legrand.www.module.authentication.dto.TokenDTO;
import com.legrand.www.module.core.entity.User;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author xiah
 * 2018-06-27 02:28:37
 * 用户注册和登录相关
 */
public interface UserService extends IService<User> {
    User getUser();

    /**
     * @param userName 用户名
     * @return User 
     */
    TokenDTO checkUser(String userName, String password) throws Exception;

}
